﻿
using BCCommon;
using BCCommon.Enums;
using BCData.TMS.OrderFreightRecord;
using BCDto.TMS.OrderFreightRecord;
using BCEntity.TMS.OrderFreightRecord;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.TMS.OrderFreightRecord
{
	/// <summary>
	/// 订单运费
	/// </summary>
	public interface IOrderFreightRecordService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="orderFreightRecordId">订单运费记录</param>
		bool Exists(long orderFreightRecordId);
		/// <summary>
		/// 添加订单运费
		/// </summary>
		/// <param name="requestDto">订单运费信息</param>
		OrderFreightRecordDto Add(OrderFreightRecordRequestDto requestDto);
		/// <summary>
		/// 更新订单运费
		/// </summary>
		/// <param name="putDto">订单运费信息</param>
		OrderFreightRecordDto Update(OrderFreightRecordPutDto putDto);
		/// <summary>
		/// 删除订单运费
		/// </summary>
		/// <param name="orderFreightRecordId">订单运费记录</param>
		bool Delete(long orderFreightRecordId);
		/// <summary>
		/// 获取订单运费
		/// </summary>
		/// <param name="orderFreightRecordId">订单运费记录</param>
		OrderFreightRecordDto Get(long orderFreightRecordId);
		/// <summary>
		/// 获取订单运费列表
		/// </summary>
		/// <param name="orderNo">订单编号</param>
		IEnumerable<OrderFreightRecordDto> GetList(string orderNo);
		/// <summary>
		/// 获取订单运费列表
		/// </summary>
		/// <param name="orderId">订单id</param>
		IEnumerable<OrderFreightRecordDto> GetList(long orderId);

		/// <summary>
		/// 获取订单运费分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">订单运费每页数据条数</param>
		PageableList<OrderFreightRecordDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}